package com.simpleaccount.User;

import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.widget.TextView;

import com.simpleaccount.R;

import cn.bmob.v3.BmobUser;

/**
 * Created by Administrator on 2017/7/18.
 */

public class UserMessageActivity extends Activity {
    private TextView tv_showusername;
    private TextView tv_shownickname;
    private TextView tv_showemail;
    private TextView tv_showphone;






    @Override
    protected void onCreate(Bundle savedInstanceState) {//2
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_usermessage);

        tv_showusername=(TextView)findViewById(R.id.tv_showusername);
        tv_shownickname=(TextView)findViewById(R.id.tv_shownickname);
        tv_showemail=(TextView)findViewById(R.id.tv_showemail);
        tv_showphone=(TextView)findViewById(R.id.tv_showphonenum);

        AppUser appUser=  BmobUser.getCurrentUser(AppUser.class);
        tv_showusername.setText(appUser.getUsername());
        tv_showemail.setText(appUser.getEmail());
        tv_showphone.setText(appUser.getMobilePhoneNumber());
        tv_shownickname.setText(appUser.getNickName());


    }

}
